﻿using System;
using System.Collections.Generic;
using System.Web;
using System.Web.UI;
using System.Web.UI.WebControls;
using System.IO;
using System.Data;
using System.Xml;

public partial class ws_BirthdaysAll : WSPageBase
{

    #region Page Events

    protected override void OnPreInit(EventArgs e)
    {
        base.OnPreInit(e);
        // Enabled trace in code
        this.Context.Trace.IsEnabled = false;
    }

    protected void Page_Load(object sender, EventArgs e)
    {
        base.Page_Load(sender, e);
        XmlDocument xReturn = getXML();
        Response.ContentType = "text/xml";
        Response.Write(xReturn.OuterXml);
    }

    #endregion

    #region Data

    public XmlDocument getXML()
    {
        XmlDocument xReturn = new XmlDocument();
        DataTable tbl = new DataTable("tbl");
        Ko2.Portal.SP_List.SPList_BirthdaysAll o = new Ko2.Portal.SP_List.SPList_BirthdaysAll();
        Exception err = o.Select(ref tbl);
        MakeXML(ref xReturn, ref tbl, ref err);
        return xReturn;
    }

    #endregion

}